export const geoCoordMap = {
  上海: [121.56701, 31.291864],
  云南: [102.810131, 24.866015],
  内蒙古: [111.766857, 40.885146],
  北京: [116.384578, 39.928811],
  吉林: [125.344062, 43.831634],
  四川: [102.89936, 30.577872],
  天津: [117.39643, 39.231216],
  宁夏: [106.210873, 37.551682],
  安徽: [117.102073, 31.842875],
  山东: [118.426678, 36.251468],
  山西: [111.877241, 36.548931],
  广东: [113.422614, 23.534478],
  广西: [109.154441, 23.873306],
  新疆: [85.67949, 41.261063],
  江苏: [119.236159, 33.707878],
  江西: [115.630289, 27.736011],
  河北: [115.041576, 38.077123],
  河南: [113.643381, 34.076112],
  浙江: [120.11923, 29.360468],
  海南: [109.743154, 19.122836],
  湖北: [112.318776, 31.27574],
  湖南: [111.656473, 27.67051],
  甘肃: [104.444733, 34.989642],
  福建: [118.132322, 25.753953],
  西藏: [87.887166, 31.402071],
  贵州: [106.946765, 27.013321],
  辽宁: [122.621262, 41.205508],
  重庆: [107.020354, 29.682296],
  陕西: [108.492138, 33.892196],
  青海: [96.644279, 35.773142],
  黑龙江: [128.655575, 46.979653],
  义乌: [120.074911, 29.306863],
};

export const numData = [
  { name: '上海', value: 64218 },
  { name: '云南', value: 2615 },
  { name: '内蒙古', value: 1056 },
  { name: '北京', value: 6794 },
  { name: '吉林', value: 1967 },
  { name: '四川', value: 3496 },
  { name: '天津', value: 1653 },
  { name: '宁夏', value: 625 },
  { name: '安徽', value: 20312 },
  { name: '山东', value: 12718 },
  { name: '山西', value: 2020 },
  { name: '广东', value: 19234 },
  { name: '广西', value: 7708 },
  { name: '新疆', value: 1163 },
  { name: '江苏', value: 31706 },
  { name: '江西', value: 9162 },
  { name: '河北', value: 5300 },
  { name: '河南', value: 15976 },
  { name: '海南', value: 414 },
  { name: '湖北', value: 6693 },
  { name: '湖南', value: 6302 },
  { name: '甘肃', value: 913 },
  { name: '福建', value: 7248 },
  { name: '西藏', value: 107 },
  { name: '贵州', value: 5976 },
  { name: '辽宁', value: 3132 },
  { name: '重庆', value: 2576 },
  { name: '陕西', value: 2083 },
  { name: '青海', value: 332 },
  { name: '黑龙江', value: 2146 },
];

export function widthToPixel(px: number): number {
  return (px / 3840) * window.innerWidth;
}

export function heightToPixel(px: number): number {
  return (px / 2160) * window.innerHeight;
}

export function widthToVw(px: number): string {
  return `${(px / 3840) * 100}vw`;
}

export function heightToVh(px: number): string {
  return `${(px / 2160) * 100}vh`;
}

export const areaImg =
  'image://';
